<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 500px;
            height: 500px;
            display: flex;
            border: 1px solid;
            flex-wrap:wrap;
            align-content:space-between;
        }
        .b{ 
            width: 100px;
            height: 100px;
            background-color: palevioletred;
            margin: 10px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="b"></div>
        <div class="b"></div>
        <div class="b"></div>
        <div class="b"></div>
        <div class="b"></div>
        
     </div>
</body>
</html>